/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.hazardsource.util;

public class BusinessCode {
	/**
	 * 操作成功
	 */
	public static final int MESSAGE_CODE_SUCCESS = 0;
	public static final String MESSAGE_DESCRIPTION_SUCCESS = "SUCCESS";
	
	/**
	 * 操作失败
	 */
	public static final int MESSAGE_CODE_FAIL = -1;
	public static final String MESSAGE_DESCRIPTION_FAIL = "FAIL";
	/**
	 * 数据库连接异常
	 */
	public static final int MESSAGE_CODE_EXCEPTION = 22001;
	public static final String MESSAGE_DESCRIPTION_EXCEPTION = "数据库连接异常";
	/**
	 * 获取用户失败
	 */
	public static final int MESSAGE_CODE_ACTION_EXCEPTION = 10000;
	public static final String MESSAGE_DESCRIPTION_ACTION_EXCEPTION = "获取用户失败,请重新登录";
	/**
	 * 参数校验错误
	 */
	public static final int MESSAGE_CODE_SERVICE_EXCEPTION = 22001;
	public static final String MESSAGE_DESCRIPTION_SERVICE_EXCEPTION = "参数校验错误";
	/**
	 * 流程启动失败
	 */
	public static final int MESSAGE_CODE_FLOW_EXCEPTION = 22003;
	public static final String MESSAGE_DESCRIPTION_FLOW_EXCEPTION = "流程启动失败";

	/**
	 * 指标类型数据重复
	 */
	public static final int MESSAGE_CODE_INDICATIONTYPE_DOUBLE_NAME = 21002;
	public static final String MESSAGE_DESCRIPTION_INDICATIONTYPE_DOUBLE_NAME= "指标类型名称或者key重复，无法保存";

	/**
	 * 指标类型下有数据，无法删除
	 */
	public static final int MESSAGE_CODE_INDICATIONTYPE_HAVE_ITEMS = 21003;
	public static final String MESSAGE_DESCRIPTION_INDICATIONTYPE_HAVE_ITEMS= "指标类型下存在指标项，无法删除";

	/**
	 * 指标类型数据重复
	 */
	public static final int MESSAGE_CODE_INDICATIONITEMS_DOUBLE_NAME = 21004;
	public static final String MESSAGE_DESCRIPTION_INDICATIONITEMS_DOUBLE_NAME= "同一指标类型下指标项名称，无法保存";

	/**
	 * 指标项被其他模块引用，无法删除
	 */
	public static final int MESSAGE_CODE_INDICATIONITEMS_IS_REFRENCED= 21005;
	public static final String MESSAGE_DESCRIPTION_INDICATIONITEMS_IS_REFRENCED= "指标项被其他模块引用，无法删除";

	/**
	 * 指标类型下不存在，无法操作
	 */
	public static final int MESSAGE_CODE_INDICATIONTYPE_NOT_EXISIT = 21006;
	public static final String MESSAGE_DESCRIPTION_INDICATIONTYPE_NOT_EXISIT= "指标类型下不存在，无法操作";

    /**
     * 网格模板的网格数大于26，无字母可取
     */
    public static final int MESSAGE_CODE_GRID_NUMBER_GREAT = 21007;
    public static final String MESSAGE_DESCRIPTION_GRID_NUMBER_GREAT = "上级网格下的子网格数量太多，不能再增加";


	public static final int NOT_EXCEL_FILE_CODE = 602024;
	public static final String NOT_EXCEL_FILE_DESCRIPTION = "文件不是excel类型";



	public static final int EXCEL_FILE_EMPTY_CODE = 602025;
	public static final String EXCEL_FILE_EMPTY_DESCRIPTION = "上传的excel文件为空";

	public static final int CHECK_IMPORTFILE_ERROR_CODE = 602026;
	public static final String CHECK_IMPORTFILE_ERROR_DESCRIPTION = "导入文件数据校验错误";

	public static final int CHECK_CONTINUE_CODE = 602027;
	public static final String CHECK_CONTINUE_DESCRIPTION = "继续执行";


}
